package defpackage; import com.iflytek.cloud.SpeechConstant; import com.mopub.mobileads.VastExtensionXmlManager; import java.util.ArrayList; import java.util.List; import org.apache.commons.httpclient.HttpState; import org.apache.commons.httpclient.HttpStatus; /* renamed from: skf reason: default package */ public final class skf { public static List<String> ucW = new ArrayList(); public static List<String> ucX = new ArrayList(); static { String[] strArr = new String[HttpStatus.SC_RESET_CONTENT]; strArr[0] = ""; strArr[1] = "rect"; strArr[2] = "roundRect"; strArr[3] = "ellipse"; strArr[4] = "diamond"; strArr[5] = "triangle"; strArr[6] = "rtTriangle"; strArr[7] = "parallelogram"; strArr[8] = "trapezoid"; strArr[9] = "hexagon"; strArr[10] = "octagon"; strArr[11] = SpeechConstant.MODE_PLUS; strArr[12] = "star5"; strArr[13] = "rightArrow"; strArr[14] = "thickArrow"; strArr[15] = "homePlate"; strArr[16] = "cube"; strArr[17] = "balloon"; strArr[18] = ""; strArr[19] = "arc"; strArr[20] = "line"; strArr[21] = "plaque"; strArr[22] = "can"; strArr[23] = "donut"; strArr[24] = ""; strArr[25] = ""; strArr[26] = ""; strArr[27] = ""; strArr[28] = ""; strArr[29] = ""; strArr[30] = ""; strArr[31] = ""; strArr[32] = "straightConnector1"; strArr[33] = "bentConnector2"; strArr[34] = "bentConnector3"; strArr[35] = "bentConnector4"; strArr[36] = "bentConnector5"; strArr[37] = "curvedConnector2"; strArr[38] = "curvedConnector3"; strArr[39] = "curvedConnector4"; strArr[40] = "curvedConnector5"; strArr[41] = "callout1"; strArr[42] = "callout2"; strArr[43] = "callout3"; strArr[44] = "accentCallout1"; strArr[45] = "accentCallout2"; strArr[46] = "accentCallout3"; strArr[47] = "borderCallout1"; strArr[48] = "borderCallout2"; strArr[49] = "borderCallout3"; strArr[50] = "accentBorderCallout1"; strArr[51] = "accentBorderCallout2"; strArr[52] = "accentBorderCallout3"; strArr[53] = "ribbon"; strArr[54] = "ribbon2"; strArr[55] = "chevron"; strArr[56] = "pentagon"; strArr[57] = "noSmoking"; strArr[58] = "star8"; strArr[59] = "star16"; strArr[60] = "star32"; strArr[61] = "wedgeRectCallout"; strArr[62] = "wedgeRoundRectCallout"; strArr[63] = "wedgeEllipseCallout"; strArr[64] = "wave"; strArr[65] = "foldedCorner"; strArr[66] = "leftArrow"; strArr[67] = "downArrow"; strArr[68] = "upArrow"; strArr[69] = "leftRightArrow"; strArr[70] = "upDownArrow"; strArr[71] = "irregularSeal1"; strArr[72] = "irregularSeal2"; strArr[73] = "lightningBolt"; strArr[74] = "heart"; strArr[75] = "rect"; strArr[76] = "quadArrow"; strArr[77] = "leftArrowCallout"; strArr[78] = "rightArrowCallout"; strArr[79] = "upArrowCallout"; strArr[80] = "downArrowCallout"; strArr[81] = "leftRightArrowCallout"; strArr[82] = "upDownArrowCallout"; strArr[83] = "quadArrowCallout"; strArr[84] = "bevel"; strArr[85] = "leftBracket"; strArr[86] = "rightBracket"; strArr[87] = "leftBrace"; strArr[88] = "rightBrace"; strArr[89] = "leftUpArrow"; strArr[90] = "bentUpArrow"; strArr[91] = "bentArrow"; strArr[92] = "star24"; strArr[93] = "stripedRightArrow"; strArr[94] = "notchedRightArrow"; strArr[95] = "blockArc"; strArr[96] = "smileyFace"; strArr[97] = "verticalScroll"; strArr[98] = "horizontalScroll"; strArr[99] = "circularArrow"; strArr[100] = ""; strArr[101] = "uturnArrow"; strArr[102] = "curvedRightArrow"; strArr[103] = "curvedLeftArrow"; strArr[104] = "curvedUpArrow"; strArr[105] = "curvedDownArrow"; strArr[106] = "cloudCallout"; strArr[107] = "ellipseRibbon"; strArr[108] = "ellipseRibbon2"; strArr[109] = "flowChartProcess"; strArr[110] = "flowChartDecision"; strArr[111] = "flowChartInputOutput"; strArr[112] = "flowChartPredefinedProcess"; strArr[113] = "flowChartInternalStorage"; strArr[114] = "flowChartDocument"; strArr[115] = "flowChartMultidocument"; strArr[116] = "flowChartTerminator"; strArr[117] = "flowChartPreparation"; strArr[118] = "flowChartManualInput"; strArr[119] = "flowChartManualOperation"; strArr[120] = "flowChartConnector"; strArr[121] = "flowChartPunchedCard"; strArr[122] = "flowChartPunchedTape"; strArr[123] = "flowChartSummingJunction"; strArr[124] = "flowChartOr"; strArr[125] = "flowChartCollate"; strArr[126] = "flowChartSort"; strArr[127] = "flowChartExtract"; strArr[128] = "flowChartMerge"; strArr[129] = "flowChartOfflineStorage"; strArr[130] = "flowChartOnlineStorage"; strArr[131] = "flowChartMagneticTape"; strArr[132] = "flowChartMagneticDisk"; strArr[133] = "flowChartMagneticDrum"; strArr[134] = "flowChartDisplay"; strArr[135] = "flowChartDelay"; strArr[136] = "rect"; strArr[137] = "rect"; strArr[138] = "rect"; strArr[139] = "rect"; strArr[140] = "rect"; strArr[141] = "rect"; strArr[142] = "rect"; strArr[143] = "rect"; strArr[144] = "rect"; strArr[145] = "rect"; strArr[146] = "rect"; strArr[147] = "rect"; strArr[148] = "rect"; strArr[149] = "rect"; strArr[150] = "rect"; strArr[151] = "rect"; strArr[152] = "rect"; strArr[153] = "rect"; strArr[154] = "rect"; strArr[155] = "rect"; strArr[156] = "rect"; strArr[157] = "rect"; strArr[158] = "rect"; strArr[159] = "rect"; strArr[160] = "rect"; strArr[161] = "rect"; strArr[162] = "rect"; strArr[163] = "rect"; strArr[164] = "rect"; strArr[165] = "rect"; strArr[166] = "rect"; strArr[167] = "rect"; strArr[168] = "rect"; strArr[169] = "rect"; strArr[170] = "rect"; strArr[171] = "rect"; strArr[172] = "rect"; strArr[173] = "rect"; strArr[174] = "rect"; strArr[175] = "rect"; strArr[176] = "flowChartAlternateProcess"; strArr[177] = "flowChartOffpageConnector"; strArr[178] = "callout1"; strArr[179] = "accentCallout1"; strArr[180] = "borderCallout1"; strArr[181] = "accentBorderCallout1"; strArr[182] = "leftRightUpArrow"; strArr[183] = "sun"; strArr[184] = "moon"; strArr[185] = "bracketPair"; strArr[186] = "bracePair"; strArr[187] = "star4"; strArr[188] = "doubleWave"; strArr[189] = "actionButtonBlank"; strArr[190] = "actionButtonHome"; strArr[191] = "actionButtonHelp"; strArr[192] = "actionButtonInformation"; strArr[193] = "actionButtonForwardNext"; strArr[194] = "actionButtonBackPrevious"; strArr[195] = "actionButtonEnd"; strArr[196] = "actionButtonBeginning"; strArr[197] = "actionButtonReturn"; strArr[198] = "actionButtonDocument"; strArr[199] = "actionButtonSound"; strArr[200] = "actionButtonMovie"; strArr[201] = "rect"; strArr[202] = "rect"; strArr[203] = "rect"; strArr[204] = "rect"; String[] strArr2 = {"snip1Rect", "snip2SameRect", "snip2DiagRect", "snipRoundRect", "round1Rect", "round2SameRect", "round2DiagRect", "heptagon", "pie", "chord", "teardrop", "halfFrame", "corner", "diagStripe", SpeechConstant.TYPE_CLOUD, "mathPlus", "mathMinus", "mathMultiply", "mathDivide", "mathEqual", "mathNotEqual", "star6", "star7", "star10", "star12", "decagon", "dodecagon", "frame"}; for (int i = 0; i < 205; i++) { ucW.add(strArr[i]); } for (int i2 = 0; i2 < 28; i2++) { ucX.add(strArr2[i2]); } } public static void a(coj coj, int i, float f) { float f2 = 1.0f - f; if (i != new elb().eXR || f2 != 0.0f) { coj.N("a", "srgbClr"); String format = String.format("%06x", Integer.valueOf(i)); if (format.length() > 6) { format = format.substring(2); } coj.J("val", format); float f3 = f2 * 100000.0f; if (100000.0f != f3) { coj.N("a", "alpha"); coj.r("val", (int) f3); coj.O("a", "alpha"); } coj.O("a", "srgbClr"); } } private static void a(coj coj, bvk bvk, String str) { coj.N("a", "path"); coj.J("path", str); coj.N("a", "fillToRect"); coj.r("l", (int) (bvk.left * 100000.0f)); coj.r("t", (int) (bvk.top * 100000.0f)); coj.r("r", (int) ((1.0f - bvk.left) * 100000.0f)); coj.r("b", (int) ((1.0f - bvk.top) * 100000.0f)); coj.O("a", "fillToRect"); coj.O("a", "path"); coj.N("a", "tileRect"); coj.O("a", "tileRect"); } private static void a(coj coj, euv euv, skk skk, boolean z) { String b = skk.b(euv); if (b != null) { coj.N("a", "blipFill"); if (!z) { coj.r("rotWithShape", 0); } coj.N("a", "blip"); coj.h("xmlns", "r", "http://schemas.openxmlformats.org/officeDocument/2006/relationships"); coj.h("r", "embed", b); int blX = (int) ((1.0f - euv.blX()) * 100000.0f); if (blX != 100000) { coj.N("a", "alphaModFix"); coj.r("amt", blX); coj.O("a", "alphaModFix"); } coj.O("a", "blip"); coj.N("a", "srcRect"); coj.O("a", "srcRect"); if (euv.blW() == 2) { coj.N("a", "tile"); bvk bma = euv.bma(); if (bma == null) { bma = new bvk(0.0f, 0.0f, 1.0f, 1.0f); } coj.r("tx", (int) (bma.left * 12700.0f)); coj.r("ty", (int) (bma.top * 12700.0f)); coj.r("sx", ((int) bma.right) * 100000); coj.r("sy", ((int) bma.bottom) * 100000); String str = "none"; if (euv.eWn.contains(1114346)) { str = euv.eWn.getString(1114346); } coj.J("flip", str); String str2 = "tl"; if (euv.eWn.contains(1114328)) { str2 = euv.eWn.getString(1114328); } coj.J("algn", str2); coj.O("a", "tile"); } else { coj.N("a", "stretch"); coj.N("a", "fillRect"); bvk bma2 = euv.bma(); if (bma2 == null) { bma2 = new bvk(0.0f, 0.0f, 0.0f, 0.0f); } coj.r("l", ((int) bma2.left) * 100000); coj.r("t", ((int) bma2.top) * 100000); coj.r("r", ((int) bma2.right) * 100000); coj.r("b", ((int) bma2.bottom) * 100000); coj.O("a", "fillRect"); coj.O("a", "stretch"); } coj.O("a", "blipFill"); } } private static void a(coj coj, eux eux, boolean z) { coj.N("a", "gradFill"); if (!z) { coj.r("rotWithShape", 0); } eva bmi = eux.bmi(); if (bmi != null) { coj.N("a", "gsLst"); if (eux.bmh() == 0.0f || eux.bmh() == -50.0f) { for (int i = 0; i < bmi.flD.size(); i++) { bmi.th(i).flC = 1.0f - bmi.th(i).flC; } } if (eux.bmh() == 50.0f || eux.bmh() == -50.0f) { if (eux.bmg() < 0.0f) { for (int i2 = 0; i2 < bmi.flD.size(); i2++) { bmi.th(i2).flC = 1.0f - bmi.th(i2).flC; } } for (int i3 = 0; i3 < bmi.flD.size(); i3++) { bmi.th(i3).flC /= 2.0f; } int size = bmi.flD.size(); for (int i4 = 0; i4 < size; i4++) { if (bmi.th(i4).flC != 0.5f) { euz euz = new euz(); euz.color = bmi.th(i4).color; euz.setAlpha(bmi.th(i4).getAlpha()); euz.flC = 1.0f - bmi.th(i4).flC; bmi.a(euz); } } } for (int i5 = 0; i5 < bmi.flD.size(); i5++) { euz th = bmi.th(i5); coj.N("a", "gs"); coj.r("pos", (int) (th.flC * 100000.0f)); a(coj, th.color, 1.0f - th.getAlpha()); coj.O("a", "gs"); } coj.O("a", "gsLst"); } bvk blZ = eux.blZ(); float bmg = eux.bmg(); if (bmg < 0.0f) { bmg += 180.0f; } float f = bmg > 90.0f ? 450.0f - bmg : 90.0f - bmg; switch (eux.blW()) { case 4: coj.N("a", "lin"); coj.r("ang", (int) (f * 60000.0f)); coj.O("a", "lin"); break; case 5: a(coj, blZ, "rect"); break; case 6: a(coj, blZ, "shape"); break; case 7: coj.N("a", "lin"); coj.r("ang", (int) (f * 60000.0f)); coj.r("scaled", 1); coj.O("a", "lin"); break; case 10: a(coj, blZ, "circle"); break; } coj.O("a", "gradFill"); } private static void a(coj coj, evl evl, skk skk) { String afZ = skk.afZ(evl.bal() - 1); if (afZ != null) { coj.N("a", "pattFill"); coj.J("prst", afZ); coj.N("a", "fgClr"); a(coj, evl.getColor(), evl.blX()); coj.O("a", "fgClr"); coj.N("a", "bgClr"); a(coj, evl.bmb(), evl.blY()); coj.O("a", "bgClr"); coj.O("a", "pattFill"); } } private static void a(coj coj, evs evs) { if (evs != null) { coj.N("a", "solidFill"); a(coj, evs.getColor(), evs.blX()); coj.O("a", "solidFill"); } } private static void a(coj coj, ewb ewb, String str) { coj.N("a", str); coj.J(VastExtensionXmlManager.TYPE, sdp.tRV.get(ewb.head)); coj.J("w", sdp.tUW.get(ewb.width)); coj.J("len", sdp.tUW.get(ewb.len)); coj.O("a", str); } /* JADX WARNING: Removed duplicated region for block: B:127:0x05f1 */ /* JADX WARNING: Removed duplicated region for block: B:128:0x062c */ /* JADX WARNING: Removed duplicated region for block: B:129:0x0667 */ /* JADX WARNING: Removed duplicated region for block: B:136:0x06ed */ /* JADX WARNING: Removed duplicated region for block: B:143:0x0771 */ /* JADX WARNING: Removed duplicated region for block: B:144:0x07fd */ /* JADX WARNING: Removed duplicated region for block: B:145:0x0812 */ /* JADX WARNING: Removed duplicated region for block: B:205:0x0998 */ /* JADX WARNING: Removed duplicated region for block: B:246:0x0ae3 */ public static void a(coj coj, rfq rfq, skk skk) { String str; String str2; int i; int i2; int i3; coj.N("xdr", "spPr"); coj.N("a", "xfrm"); if (rfq.eWA() != 0.0f) { coj.r("rot", (int) (rfq.eWA() * 60000.0f)); } if (rfq.baJ() != null) { ejj baJ = rfq.baJ(); if (baJ.aZf()) { coj.r("flipH", 1); } if (baJ.aZg()) { coj.r("flipV", 1); } } if (rfq.tfW.eWM() instanceof rfi) { rfi rfi = (rfi) rfq.tfW.eWM(); float eWA = rfq.eWA(); long eVT = (long) rfi.eVT(); long eVU = (long) rfi.eVU(); long eVW = (long) (rfi.eVW() - rfi.eVT()); long eVV = (long) (rfi.eVV() - rfi.eVU()); float f = eWA % 360.0f; if (f < 0.0f) { f += 360.0f; } if ((f != 135.0f && Math.abs(f - 90.0f) <= 45.0f) || (f != 315.0f && Math.abs(f - 270.0f) <= 45.0f)) { eVT = (eVT + (eVW / 2)) - (eVV / 2); eVU = (eVU + (eVV / 2)) - (eVW / 2); eVW = eVV; eVV = eVW; } coj.N("a", "off"); coj.J("x", Long.toString(eVT)); coj.J("y", Long.toString(eVU)); coj.O("a", "off"); coj.N("a", "ext"); coj.J("cx", Long.toString(eVW)); coj.J("cy", Long.toString(eVV)); coj.O("a", "ext"); } else if (rfq.aZl() != null) { bvk aZl = rfq.aZl(); coj.N("a", "off"); coj.J("x", Long.toString((long) aZl.left)); coj.J("y", Long.toString((long) aZl.top)); coj.O("a", "off"); coj.N("a", "ext"); coj.J("cx", Long.toString((long) (aZl.right - aZl.left))); coj.J("cy", Long.toString((long) (aZl.bottom - aZl.top))); coj.O("a", "ext"); } else { coj.N("a", "off"); coj.r("x", 0); coj.r("y", 0); coj.O("a", "off"); coj.N("a", "ext"); coj.r("cx", 0); coj.r("cy", 0); coj.O("a", "ext"); } coj.O("a", "xfrm"); int baM = rfq.baM(); if (baM == 100) { baM = 0; rfq.ss(0); } if (baM > 0 || ucX.indexOf(rfq.eVK) != -1) { int baM2 = rfq.baM(); if ((baM2 >= 0 && baM2 < ucW.size()) || ucX.indexOf(rfq.eVK) != -1) { coj.N("a", "prstGeom"); if (baM2 == 0) { str2 = rfq.eVK; } else { List<String> list = ucW; if (baM2 == -1) { baM2 = 1; } str2 = list.get(baM2); } coj.J("prst", str2); coj.N("a", "avLst"); coj.O("a", "avLst"); coj.O("a", "prstGeom"); } } else if (rfq.baM() == 0 && rfq.baU() != null) { coj.N("a", "custGeom"); coj.N("a", "avLst"); coj.O("a", "avLst"); exk baU = rfq.baU(); int[] bqT = baU.bqT(); exr[] bqV = baU.bqV(); if (bqT != null) { coj.N("a", "gdLst"); bvk bqS = baU.bqS(); int i4 = (int) bqS.right; int i5 = (int) bqS.bottom; int i6 = 0; for (int i7 = 0; i7 < bqV.length; i7++) { if (bqV[i7].fph == 64 || bqV[i7].fph == 0 || bqV[i7].fph == 32) { coj.N("a", "gd"); int i8 = i6 + 1; coj.J("name", "T" + i6); coj.J("fmla", "*/ " + bqT[(bqV[i7].start + exd.X(bqV[i7].fph)) - 2] + " w " + i4); coj.O("a", "gd"); coj.N("a", "gd"); i6 = i8 + 1; coj.J("name", "T" + i8); coj.J("fmla", "*/ " + bqT[(bqV[i7].start + exd.X(bqV[i7].fph)) - 1] + " h " + i5); coj.O("a", "gd"); } } coj.O("a", "gdLst"); coj.N("a", "ahLst"); coj.O("a", "ahLst"); coj.N("a", "cxnLst"); for (int i9 = 0; i9 < i6; i9 += 2) { coj.N("a", "cxn"); coj.r("ang", 0); coj.N("a", "pos"); coj.J("x", "T" + i9); coj.J("y", "T" + (i9 + 1)); coj.O("a", "pos"); coj.O("a", "cxn"); } coj.O("a", "cxnLst"); coj.N("a", "rect"); coj.J("l", "0"); coj.J("t", "0"); coj.J("r", "r"); coj.J("b", "b"); coj.O("a", "rect"); coj.N("a", "pathLst"); coj.N("a", "path"); boolean z = false; for (exr exr : bqV) { switch (exr.fph) { case 128: z = true; break; case 170: coj.J("fill", "none"); break; case 171: coj.J("stroke", HttpState.PREEMPTIVE_DEFAULT); break; } if (z) { coj.r("w", i4); coj.r("h", i5); i = 0; i2 = 0; while (i2 < bqV.length && i < bqT.length) { switch (bqV[i2].fph) { case 0: coj.N("a", "lnTo"); coj.N("a", "pt"); int i10 = i + 1; coj.r("x", bqT[i]); i3 = i10 + 1; coj.r("y", bqT[i10]); coj.O("a", "pt"); coj.O("a", "lnTo"); continue; continue; i2++; i = i3; case 32: coj.N("a", "cubicBezTo"); coj.N("a", "pt"); coj.r("x", bqT[i]); coj.r("y", bqT[i + 1]); coj.O("a", "pt"); coj.N("a", "pt"); coj.r("x", bqT[i + 2]); coj.r("y", bqT[i + 3]); coj.O("a", "pt"); coj.N("a", "pt"); coj.r("x", bqT[i + 4]); coj.r("y", bqT[i + 5]); coj.O("a", "pt"); coj.O("a", "cubicBezTo"); i3 = i + 6; continue; continue; i2++; i = i3; case 64: coj.N("a", "moveTo"); coj.N("a", "pt"); int i11 = i + 1; coj.r("x", bqT[i]); i3 = i11 + 1; coj.r("y", bqT[i11]); coj.O("a", "pt"); coj.O("a", "moveTo"); continue; continue; i2++; i = i3; case 96: coj.N("a", "close"); coj.O("a", "close"); i3 = i; continue; continue; i2++; i = i3; case 128: coj.O("a", "path"); if (i2 + 1 < bqV.length) { coj.N("a", "path"); coj.r("w", i4); coj.r("h", i5); boolean z2 = false; for (int i12 = i2; i12 < bqV.length; i12++) { switch (bqV[i2].fph) { case 128: z2 = true; break; case 170: coj.J("fill", "none"); break; case 171: coj.J("stroke", HttpState.PREEMPTIVE_DEFAULT); break; } if (z2) { break; } } break; } break; case 163: if (i + 7 < bqT.length) { coj.N("a", "arcTo"); int i13 = bqT[i]; int i14 = bqT[i + 1]; int i15 = bqT[i + 2]; int i16 = bqT[i + 3]; int i17 = (i15 - i13) / 2; int i18 = (i16 - i14) / 2; int i19 = (i13 + i15) / 2; int i20 = (i14 + i16) / 2; float ky = ky(bqT[i + 4] - i19, i20 - bqT[i + 5]); float ky2 = ky - ky(bqT[i + 6] - i19, i20 - bqT[i + 7]); if (ky2 <= 0.0f) { ky2 += 360.0f; } coj.r("wR", i17); coj.r("hR", i18); coj.r("stAng", (int) (ky * 60000.0f)); coj.r("swAng", (int) ((-ky2) * 60000.0f)); coj.O("a", "arcTo"); } i3 = i + 8; continue; continue; i2++; i = i3; case 165: if (bqT.length >= i + 7) { coj.N("a", "arcTo"); int i21 = bqT[i]; int i22 = bqT[i + 1]; int i23 = bqT[i + 2]; int i24 = bqT[i + 3]; int i25 = (i23 - i21) / 2; int i26 = (i24 - i22) / 2; int i27 = (i21 + i23) / 2; int i28 = (i22 + i24) / 2; float ky3 = ky(bqT[i + 4] - i27, i28 - bqT[i + 5]); float ky4 = ky(bqT[i + 6] - i27, i28 - bqT[i + 7]) - ky3; if (ky4 <= 0.0f) { ky4 += 360.0f; } coj.r("wR", i25); coj.r("hR", i26); coj.r("stAng", (int) (ky3 * 60000.0f)); coj.r("swAng", (int) (ky4 * 60000.0f)); coj.O("a", "arcTo"); } i3 = i + 8; continue; continue; i2++; i = i3; } i3 = i; i2++; i = i3; } if (bqV.length <= 0 || bqV[bqV.length - 1].fph != 128) { coj.O("a", "path"); } coj.O("a", "path"); coj.O("a", "pathLst"); } } coj.r("w", i4); coj.r("h", i5); i = 0; i2 = 0; while (i2 < bqV.length) { switch (bqV[i2].fph) { case 0: break; case 32: break; case 64: break; case 96: break; case 128: break; case 163: break; case 165: break; } i3 = i; i2++; i = i3; } coj.O("a", "path"); coj.O("a", "path"); coj.O("a", "pathLst"); } coj.O("a", "custGeom"); } if (rfq.baT() == null) { euw bbd = rfq.bbd(); if (bbd == null || !bbd.bmc()) { coj.N("a", "noFill"); coj.O("a", "noFill"); } else if (bbd instanceof evs) { a(coj, (evs) bbd); } else if (bbd instanceof evl) { a(coj, (evl) bbd, skk); } else if (bbd instanceof euv) { a(coj, (euv) bbd, skk, rfq.baE()); } else if (bbd instanceof eux) { a(coj, (eux) bbd, rfq.baE()); } ewc yo = rfq.yo(); coj.N("a", "ln"); if (yo != null) { coj.r("w", (int) (yo.getWidth() * 12700.0f)); coj.J("cap", sdp.tUU.get(yo.bmY())); coj.J("cmpd", sdp.tRU.get(yo.bmT())); if (yo.bmS()) { euw bbd2 = yo.bbd(); if (bbd2 == null) { coj.N("a", "solidFill"); a(coj, yo.getColor(), yo.blX()); coj.O("a", "solidFill"); } else if (bbd2 instanceof evs) { a(coj, (evs) bbd2); } else if (bbd2 instanceof evl) { a(coj, (evl) bbd2, skk); } else if (bbd2 instanceof euv) { a(coj, (euv) bbd2, skk, true); } else if (bbd2 instanceof eux) { a(coj, (eux) bbd2, true); } } else { coj.N("a", "noFill"); coj.O("a", "noFill"); } int bmU = yo.bmU(); coj.N("a", "prstDash"); if (bmU < 0 || bmU >= sdp.tUV.size()) { bmU = 0; } coj.J("val", sdp.tUV.get(bmU)); coj.O("a", "prstDash"); String[] strArr = {"bevel", "miter", "round"}; if (yo.bmW() < 3) { coj.N("a", strArr[yo.bmW()]); coj.O("a", strArr[yo.bmW()]); } if (yo.bmZ() != null) { a(coj, yo.bmZ(), "headEnd"); } if (yo.bna() != null) { a(coj, yo.bna(), "tailEnd"); } } else { coj.N("a", "noFill"); coj.O("a", "noFill"); } coj.O("a", "ln"); coj.N("a", "effectLst"); euo yi = rfq.yi(); if (yi != null && yi.bkz()) { float bkD = yi.bkD(); float bkF = yi.bkF(); float sqrt = (float) Math.sqrt((double) ((bkD * bkD) + (bkF * bkF))); float acos = (float) ((Math.acos((double) (bkD / sqrt)) * 180.0d) / 3.141592653589793d); if (bkF < 0.0f) { acos = 360.0f - acos; } if (yi.bky() == 2) { float bkN = yi.bkN(); float bkL = yi.bkL(); boolean z3 = Math.abs(Math.abs(bkL) - 1.4141846f) < 1.0E-6f; if (bkN == 1.0f && z3) { str = bkL > 0.0f ? "shdw11" : "shdw12"; if (str == null) { } } else if (bkN == -1.0f && z3) { str = bkL > 0.0f ? "shdw15" : "shdw16"; if (str == null) { coj.N("a", "outerShdw"); coj.J("dist", Long.toString((long) ((int) (sqrt * 12700.0f)))); coj.J("dir", Long.toString((long) (acos * 60000.0f))); if (yi.bkK() != 1.0f) { coj.J("sx", Long.toString((long) (yi.bkK() * 100000.0f))); } if (yi.bkN() != 1.0f) { coj.J("sy", Long.toString((long) (yi.bkN() * 100000.0f))); } if (yi.bkL() != 1.0f) { coj.J("kx", Long.toString((long) (((float) ((Math.atan((double) yi.bkL()) * 180.0d) / 3.141592653589793d)) * 60000.0f))); } float bkQ = yi.bkQ(); float bkR = yi.bkR(); String str3 = ""; if (bkR < 0.0f) { str3 = "t"; } else if (bkR > 0.0f) { str3 = "b"; } if (bkQ < 0.0f) { str3 = str3 + "l"; } else if (bkQ > 0.0f) { str3 = str3 + "r"; } if ("".equals(str3)) { str3 = "ctr"; } coj.J("algn", str3); coj.r("rotWithShape", 0); a(coj, yi.getShadowColor(), 1.0f - yi.bkB()); coj.O("a", "outerShdw"); } else { coj.N("a", "prstShdw"); coj.J("dist", Long.toString((long) ((int) (sqrt * 12700.0f)))); coj.J("dir", Long.toString((long) (acos * 60000.0f))); coj.J("prst", str); a(coj, yi.getShadowColor(), 1.0f - yi.bkB()); coj.O("a", "prstShdw"); } } } str = yi.bky() == 1 ? "shdw13" : yi.bky() == 5 ? "shdw17" : null; if (str == null) { } } coj.O("a", "effectLst"); if (rfq.eWI() != null && rfq.eWI().bjE()) { euk eWI = rfq.eWI(); coj.N("a", "scene3d"); coj.N("a", "camera"); StringBuffer stringBuffer = new StringBuffer(); stringBuffer.append("legacy"); if (eWI.bkg()) { stringBuffer.append("Oblique"); } else { stringBuffer.append("Perspective"); } float bjO = eWI.bjO(); float bjP = eWI.bjP(); if (((int) (eWI.bjQ() * 12700.0f)) != 9000000) { bjO = -1.0f; bjP = -1.0f; } if (bjP < 0.0f) { stringBuffer.append("Top"); } else if (bjP > 0.0f) { stringBuffer.append("Bottom"); } if (bjO < 0.0f) { stringBuffer.append("Left"); } else if (bjO > 0.0f) { stringBuffer.append("Right"); } if (bjP == 0.0f && bjO == 0.0f) { stringBuffer.append("Front"); } coj.J("prst", stringBuffer.toString()); coj.N("a", "rot"); float f2 = -eWI.bjG(); if (f2 < 0.0f) { f2 += 360.0f; } coj.r("lat", (int) (f2 * 60000.0f)); float bjH = eWI.bjH(); if (bjH < 0.0f) { bjH += 360.0f; } coj.r("lon", (int) (bjH * 60000.0f)); coj.r("rev", 0); coj.O("a", "rot"); coj.O("a", "camera"); coj.N("a", "lightRig"); float bjV = eWI.bjV(); StringBuffer stringBuffer2 = new StringBuffer(); stringBuffer2.append("legacy"); if (((double) bjV) > 0.3d) { stringBuffer2.append("Flat"); } else if (((double) bjV) > 0.15d) { stringBuffer2.append("Normal"); } else { stringBuffer2.append("Harsh"); } float bjW = eWI.bjW(); float bjX = eWI.bjX(); float f3 = bjW * bjX; int i29 = 3; if (f3 > 0.0f) { i29 = 2; } else if (f3 < 0.0f) { i29 = 4; } else if (bjW == 0.0f && bjX == 0.0f) { i29 = 1; } stringBuffer2.append(i29); coj.J("rig", stringBuffer2.toString()); String str4 = "t"; if (bjW > 0.0f) { str4 = "b"; } if (bjW == 0.0f) { if (bjX < 0.0f) { str4 = "r"; } if (bjX > 0.0f) { str4 = "l"; } } coj.J("dir", str4); coj.O("a", "lightRig"); coj.O("a", "scene3d"); coj.N("a", "sp3d"); coj.J("extrusionH", Long.toString((long) ((int) (eWI.bjy() * 12700.0f)))); float bjt = eWI.bjt(); float bju = eWI.bju(); String str5 = "legacyMatte"; if (eWI.getRenderMode() == 1) { str5 = "legacyWireframe"; } if (bjt > 1.0f && bju == 1.0f) { str5 = "legacyPlastic"; } else if (bjt > 1.0f && bju < 1.0f) { str5 = "legacyMetal"; } coj.J("prstMaterial", str5); coj.N("a", "bevelT"); coj.r("w", 13500); coj.r("h", 13500); coj.J("prst", "angle"); coj.O("a", "bevelT"); coj.N("a", "bevelB"); coj.r("w", 13500); coj.r("h", 13500); coj.J("prst", "angle"); coj.O("a", "bevelB"); coj.N("a", "extrusionClr"); a(coj, eWI.alZ(), 0.0f); coj.O("a", "extrusionClr"); coj.O("a", "sp3d"); } } coj.O("xdr", "spPr"); } private static float ky(int i, int i2) { if (i == 0) { return i2 > 0 ? 270.0f : 90.0f; } double atan = (Math.atan(((double) i2) / ((double) i)) * 180.0d) / 3.141592653589793d; return (float) (i < 0 ? 180.0d - atan : (360.0d - atan) % 360.0d); } }